#ifndef _BUTTON_
#define _BUTTON_

#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <SDL.h>
#include <string>
#include <vector>
#include "Text.h"

using namespace std;

class Container;

class Button {
    private:
        Container* parent;
        
        string name;
        int x;
        int y;
        int w;
        int h;
        
        SDL_Surface* SDL_render;
        
        Text* label;
        bool mouseIsOver;
        
    public:
        Button(Container* parent, string name, string value, int x, int y, int w, int h);
        ~Button();
        
        SDL_Surface* updateRender();
        
        void mouseMotion(int x, int y);
        void mouseClick(int button, int x, int y);
        
        string getName();
        int getx();
        int gety();
};

#endif